package com.oe.gateway.service;

import com.oe.common.resp.LdmResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("ldm-service-user")
public interface UserClinet {

    @RequestMapping("/user/register/{email}/{password}/{code}")
    public LdmResponse register(@PathVariable("email") String email,@PathVariable("password") String password,@PathVariable("code") String code);

    @RequestMapping("/user/login/{email}/{password}")
    public LdmResponse login(@PathVariable("email") String email,@PathVariable("password") String password);

    @RequestMapping("/user/isRegistered/{email}")
    public LdmResponse isRegistered(@PathVariable("email") String email);

    @RequestMapping("/user/info/{token}")
    public LdmResponse getUserInfo(@PathVariable("token") String token);
}
